
from django.urls import path

from . import views

urlpatterns = [
   # path('/', views.ClassView.as_view()),
   # 判断用户名是否重复的子路由
   path('usernames/<username:username>/count/', views.UserNameView.as_view()),
   path('mobiles/<mobile:mobile>/count/', views.MobileView.as_view()),
   path('register/',views.RegisterView.as_view()),
   # 发短信
   path('sms_codes/<mobile:mobile>/', views.SmsCodeView.as_view()),
   # 登录
   path('login/', views.LoginView.as_view()),
   # 个人中心
   path('info/', views.InfoView.as_view()),

   # 修改密码
   path('password/', views.UpdatePWDView.as_view()),

   # 上传图片
   path('uploadimg/', views.upload_image),

]
